﻿/************************************************************************		
								MVC								
************************************************************************/

//A circular reference was detected while serializing an object of type 
/* deve-se converter para Enumerable e selecionar manualmente as colunas */
var query = (from q in DB.tblwritequestion.AsEnumerable()                                     
			 where q.IdFolder == id
			 select new tblwritequestion()
			 {
			   IdWriteQuestion = q.IdWriteQuestion,
			   Question = q.Question,
			   Answer = q.Answer                                       
			 }).ToList();


/************************************************************************		
								WebForms								
************************************************************************/

//Control 'MainContent_' of type 'GridView' must be placed inside a form tag with runat=server.
/* Tem que ser criado um form com runat="server". Para rodar grids, tables, etc....
/* <form runat="server"> ................ </form>


